import { createRouter, createWebHashHistory } from 'vue-router'


import Home from "../views/home/Home.vue";

const routes = [
  {
    path: "/",
    component: Home,
    redirect: "/web-home",
    children: [{ path: "/web-home", component: () => import("../views/home/WebHome.vue") }],
  },
  {
    path: "/contact",
    component: Home,
    redirect: "/contact/us",
    children: [{ path: "us", component: () => import("../views/mine/ContactUs.vue") }],
  },
  {
    path: "/intro",
    component: Home,
    redirect: "/intro/message",
    children: [{ path: "/intro/message", component: () => import("../views/home/Intro.vue") }],
  },
  {
    path: "/product",
    component: Home,
    redirect: "/product",
    children: [{ path: "/product", component: () => import("../views/home/Product.vue") }],
  },
];


const router = createRouter({
    history: createWebHashHistory(),
    routes,
  })
  
  export default router
